    	     <?
	     if(!$files):
	     	print '<img src="' . Yii::app()->request->baseUrl.'/themes/'. Yii::app()->theme->name.'/images/foto_zagl.png" width="'.$width.'" height="'.$height.'" alt="No photo" border="0">';
	     else:?>

	     <?php
      if ($percent) $widthImg = $percent;
      else $widthImg = $width;
		  $img = 
		  ImageHelper::thumb($widthImg,$height,'/' . $files['image_path'],array('method' => $thumbMethod));

		  $img_tag = '<img border=0 src="'.$img . '" width="'.$width.'"  class="firstOnly">';

      if($url)
		      print CHtml::link($img_tag, $url, array('class'=>'firstonly'));
      else
          echo $img_tag;
		 ?>

		 <?endif;?>